package demo2;

import java.util.ArrayList;

public class tets1 {
    public static void main(String[] args) {
        ArrayList<String> arrayList = new ArrayList<>();
        arrayList.add("abc");
        arrayList.add("efg");
        arrayList.add("kjl");
        arrayList.add("mmm");
        for (int i = 0; i < arrayList.size();i++){
            System.out.println(arrayList.get(i)+" ");
        }
        System.out.println();
    }
}
